package com.hdax.dmw.scheduler.controller;

import com.hdax.dmw.common.controllers.scheduler.SchedulerControllerApi;
import com.hdax.dmw.entity.scheduler.DmSchedulerSeat;
import com.hdax.dmw.scheduler.service.DmSchedulerSeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SchedulerController implements SchedulerControllerApi {
    @Autowired
    private DmSchedulerSeatService seatService;

    @Override
    public DmSchedulerSeat detail(Long scheduleId, Integer x, Integer y) {
        return seatService.detail(scheduleId, x, y);
    }

    @Override
    public void updates(List<DmSchedulerSeat> seats) {
        seatService.updateBatchById(seats);
    }
}
